/*
 * @Author: zhangyun
 * @Date: 2021-04-27 09:31:02
 * @LastEditors: zhangyun
 * @LastEditTime: 2021-04-27 09:34:39
 * @Desc:
 */
const mongoose = require('../db/dbServer')
// schema
const ideaSchema = new mongoose.Schema({
  idea: { type: String, require: true },
  user: { type: String, require: true },
})
// model
const ideaModel = mongoose.model('idea', ideaSchema)

module.exports = ideaModel
